package com.lxc.trigger.http;

import com.lxc.domain.api.model.entity.ApiEntity;
import com.lxc.domain.api.service.IApiService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author lxc18
 * @date 2024/12/11 20:16
 * @description ApiGateWayController
 */
@RestController
@RequestMapping("/api")
public class ApiGateWayController {


    @Resource
    private IApiService apiService;

    @GetMapping(value = "list", produces = "application/json;charset=utf-8")
    public List<ApiEntity> getAnswerMap(){
        return apiService.getHttpStatementList();
    }

}
